import fetch from '@/utils/fetch'

export function getOrderInfo(params){
  return fetch({
      url:'/hotline/getOrderInfoForReporter',
      method:"post",
      params
  })
}

export function addOrderInfo(params){
  return fetch({
      url:'/hotline/addOrder',
      method:"post",
      data:params
  })
}

export function addDistribute(params){
  return fetch({
      url:'/hotline/addDistribute',
      method:"post",
      data:params
  })
}

export function updateOrderInfo(params){
  return fetch({
      url:'/hotline/updateOrder',
      method:"post",
      data:params
  })
}

export function changeStatus(params){
  return fetch({
      url:'/hotline/changeStatus',
      method:"post",
      params:params
  })
}

export function getOrderInfoForDespatcher(params){
  return fetch({
    url:'/hotline/getOrderInfoForDespatcher',
    method:'post',
    params
  })
}

export function getHotlineDetail(id){
  return fetch({
    url:'/hotline/getHotlineDetail',
    method:'post',
    params:{
      id:id
    }
  })
}